package com.hp.ssm.xml.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
@RequestMapping("cust")
public class Test2 {

    @RequestMapping(value = "login",method = RequestMethod.POST)
    public String lopgin(){
        System.out.println("cust方法进入");
        return "login";
    }
    @RequestMapping(value = "login",method = RequestMethod.GET)
    public String asdfasd(){
        System.out.println("cust方法进入");
        return "register";
    }


}
